package org.example.baozi;

public class Main {
    public static void main(String[] args) {
        BaoZiPu bzp = new BaoZiPu();
        //保证了生产者和消费者使用的是同一个包子铺
        Product product = new Product(bzp);
        Consume consume = new Consume(bzp);
        Thread t1 = new Thread(product);
        Thread t2 = new Thread(consume);
        t1.start();
        t2.start();
    }
}
